home *** CD-ROM | disk | FTP | other *** search
-
-
-
- UUUUiiiillll((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV UUUUiiiillll((((3333XXXX))))
-
-
-
- NNNNAAAAMMMMEEEE
- UUUUiiiillll - Invokes the UIL compiler from within an application
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<uuuuiiiillll////UUUUiiiillllDDDDeeeeffff....hhhh>>>>
-
- UUUUiiiillll____ssssttttaaaattttuuuussss____ttttyyyyppppeeee UUUUiiiillll ((((_c_o_m_m_a_n_d__d_e_s_c, _c_o_m_p_i_l_e__d_e_s_c, _m_e_s_s_a_g_e__c_b,
- _m_e_s_s_a_g_e__d_a_t_a, _s_t_a_t_u_s__c_b, _s_t_a_t_u_s__d_a_t_a))))
- UUUUiiiillll____ccccoooommmmmmmmaaaannnndddd____ttttyyyyppppeeee *_c_o_m_m_a_n_d__d_e_s_c;;;;
- UUUUiiiillll____ccccoooommmmppppiiiilllleeee____ddddeeeesssscccc____ttttyyyyppppeeee*_c_o_m_p_i_l_e__d_e_s_c;;;;
- UUUUiiiillll____ccccoooonnnnttttiiiinnnnuuuueeee____ttttyyyyppppeeee ((((*_m_e_s_s_a_g_e__c_b)))) (((())));;;;
- cccchhhhaaaarrrr *_m_e_s_s_a_g_e__d_a_t_a;;;;
- UUUUiiiillll____ccccoooonnnnttttiiiinnnnuuuueeee____ttttyyyyppppeeee ((((*_s_t_a_t_u_s__c_b)))) (((())));;;;
- cccchhhhaaaarrrr *_s_t_a_t_u_s__d_a_t_a;;;;
-
-
- VVVVEEEERRRRSSSSIIIIOOOONNNN
- This page documents version 1.2 of the Motif library.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The UUUUiiiillll function provides a callable entry point for the UIL
- compiler. The UUUUiiiillll callable interface can be used to process
- a UIL source file and to generate UID files, as well as
- return a detailed description of the UIL source module in
- the form of a symbol table (parse tree).
-
-
- _c_o_m_m_a_n_d__d_e_s_c Specifies the uuuuiiiillll command line.
-
- _c_o_m_p_i_l_e__d_e_s_c Returns the results of the compilation.
-
- _m_e_s_s_a_g_e__c_b Specifies a callback function that is
- called when the compiler encounters
- errors in the UIL source.
-
- _m_e_s_s_a_g_e__d_a_t_a Specifies user data that is passed to
- the message callback function
- (message_cb). Note that this argument is
- not interpreted by UIL, and is used
- exclusively by the calling application.
-
- _s_t_a_t_u_s__c_b Specifies a callback function that is
- called to allow X applications to
- service X events such as updating the
- screen. This function is called at
- various check points, which have been
- hard coded into the UIL compiler. The
- status_update_delay argument in
- command_desc specifies the number of
- check points to be passed before the
- status_cb function is invoked.
-
-
-
-
- Page 1 (printed 4/30/98)
-
-
-
-
-
-
- UUUUiiiillll((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV UUUUiiiillll((((3333XXXX))))
-
-
-
- _s_t_a_t_u_s__d_a_t_a Specifies user data that is passed to
- the status callback function
- (status_cb). Note that this argument is
- not interpreted by the UIL compiler, and
- is used exclusively by the calling
- application.
-
-
- The data structures UUUUiiiillll____ccccoooommmmmmmmaaaannnndddd____ttttyyyyppppeeee and
- UUUUiiiillll____ccccoooommmmppppiiiilllleeee____ddddeeeesssscccc____ttttyyyyppppeeee are detailed below.
-
- typedef struct Uil_command_type {
- char *source_file;
- /* single source to compile */
- char *resource_file; /* name of output file */
- char *listing_file; /* name of listing file */
- unsigned int *include_dir_count;
- /* number of dirs. in include_dir */
- char *((*include_dir) []);
- /* dir. to search for include files */
- unsigned listing_file_flag: 1;
- /* produce a listing */
- unsigned resource_file_flag: 1;
- /* generate UID output */
- unsigned machine_code_flag: 1;
- /* generate machine code */
- unsigned report_info_msg_flag: 1;
- /* report info messages */
- unsigned report_warn_msg_flag: 1;
- /* report warnings */
- unsigned parse_tree_flag: 1;
- /* generate parse tree */
- unsigned int status_update_delay;
- /* number of times a status point is */
- /* passed before calling status_cb */
- /* function 0 means called every time */
- char *database;
- /* name of database file */
- unsigned database_flag: 1;
- /* read a new database file */
- unsigned use_setlocale_flag: 1;
- /* enable calls to setlocale */
- };
-
- typedef struct Uil_compile_desc_type {
- unsigned int compiler_version;
- /* version number of compiler */
- unsigned int data_version;
- /* version number of structures */
- char *parse_tree_root; /* parse tree output */
- unsigned int message_count [Uil_k_max_status+1];
- /* array of severity counts */
-
-
-
- Page 2 (printed 4/30/98)
-
-
-
-
-
-
- UUUUiiiillll((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV UUUUiiiillll((((3333XXXX))))
-
-
-
- };
-
-
- Following is a description of the message callback function
- specified by _m_e_s_s_a_g_e__c_b:
-
- UUUUiiiillll____ccccoooonnnnttttiiiinnnnuuuueeee____ttttyyyyppppeeee ((((*_m_e_s_s_a_g_e__c_b)))) ((((_m_e_s_s_a_g_e__d_a_t_a, _m_e_s_s_a_g_e__n_u_m_b_e_r,
- _s_e_v_e_r_i_t_y, _m_s_g__b_u_f_f_e_r, _s_r_c__b_u_f_f_e_r, _p_t_r__b_u_f_f_e_r, _l_o_c__b_u_f_f_e_r,
- _m_e_s_s_a_g_e__c_o_u_n_t))))
- cccchhhhaaaarrrr *_m_e_s_s_a_g_e__d_a_t_a;;;;
- iiiinnnntttt _m_e_s_s_a_g_e__n_u_m_b_e_r;;;;
- iiiinnnntttt _s_e_v_e_r_i_t_y;;;;
- cccchhhhaaaarrrr *_m_s_g__b_u_f_f_e_r,,,, *_s_r_c__b_u_f_f_e_r;;;;
- cccchhhhaaaarrrr *_p_t_r__b_u_f_f_e_r,,,, *_l_o_c__b_u_f_f_e_r;;;;
- iiiinnnntttt _m_e_s_s_a_g_e__c_o_u_n_t[[[[]]]];;;;
-
-
- Specifies a callback function that UIL invokes instead of
- printing an error message when the compiler encounters an
- error in the UIL source. The callback should return one of
- these values:
-
-
- UUUUiiiillll____kkkk____tttteeeerrrrmmmmiiiinnnnaaaatttteeee Tells UIL to terminate processing of the
- source file.
-
- UUUUiiiillll____kkkk____ccccoooonnnnttttiiiinnnnuuuueeee Tells UIL to continue processing the
- source file.
-
-
- Following are the arguments:
-
-
- _m_e_s_s_a_g_e__d_a_t_a Data supplied by the application as the
- _m_e_s_s_a_g_e__d_a_t_a argument to the UUUUiiiillll
- function. UIL does not interpret this
- data in any way; it just passes it to
- the callback.
-
- _m_e_s_s_a_g_e__n_u_m_b_e_r An index into a table of error messages
- and severities, for internal use by UIL.
-
- _s_e_v_e_r_i_t_y An integer that indicates the severity
- of the error. The possible values are
- the status constants returned by the UUUUiiiillll
- function. See the "RETURN VALUE"
- section below.
-
- _m_s_g__b_u_f_f_e_r A string that describes the error.
-
- _s_r_c__b_u_f_f_e_r A string consisting of the source line
- where the error occurred. This is not
-
-
-
- Page 3 (printed 4/30/98)
-
-
-
-
-
-
- UUUUiiiillll((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV UUUUiiiillll((((3333XXXX))))
-
-
-
- always available; the argument is then
- NULL.
-
- _p_t_r__b_u_f_f_e_r A string consisting of whitespace and a
- printing character in the character
- position corresponding to the column of
- the source line where the error
- occurred. This string may be printed
- beneath the source line to provide a
- visual indication of the column where
- the error occurred. This is not always
- available; the argument is then NULL.
-
- _l_o_c__b_u_f_f_e_r A string identifying the line number and
- file of the source line where the error
- occurred. This is not always available;
- the argument is then NULL.
-
- _m_e_s_s_a_g_e__c_o_u_n_t An array of integers containing the
- number of diagnostic messages issued
- thus far for each severity level. To
- find the number of messages issued for
- the current severity level, use the
- _s_e_v_e_r_i_t_y argument as the index into this
- array.
-
-
- Following is a description of the status callback function
- specified by _s_t_a_t_u_s__c_b:
-
- UUUUiiiillll____ccccoooonnnnttttiiiinnnnuuuueeee____ttttyyyyppppeeee ((((*_s_t_a_t_u_s__c_b)))) ((((_s_t_a_t_u_s__d_a_t_a, _p_e_r_c_e_n_t__c_o_m_p_l_e_t_e,
- _l_i_n_e_s__p_r_o_c_e_s_s_e_d, _c_u_r_r_e_n_t__f_i_l_e, _m_e_s_s_a_g_e__c_o_u_n_t))))
- cccchhhhaaaarrrr *_s_t_a_t_u_s__d_a_t_a;;;;
- iiiinnnntttt _p_e_r_c_e_n_t__c_o_m_p_l_e_t_e;;;;
- iiiinnnntttt _l_i_n_e_s__p_r_o_c_e_s_s_e_d;;;;
- cccchhhhaaaarrrr *_c_u_r_r_e_n_t__f_i_l_e;;;;
- iiiinnnntttt _m_e_s_s_a_g_e__c_o_u_n_t[[[[]]]];;;;
-
-
- Specifies a callback function that is invoked to allow X
- applications to service X events such as updating the
- screen. The callback should return one of these values:
-
-
- UUUUiiiillll____kkkk____tttteeeerrrrmmmmiiiinnnnaaaatttteeee Tells UIL to terminate processing of the
- source file.
-
- UUUUiiiillll____kkkk____ccccoooonnnnttttiiiinnnnuuuueeee Tells UIL to continue processing the
- source file.
-
-
-
-
-
-
- Page 4 (printed 4/30/98)
-
-
-
-
-
-
- UUUUiiiillll((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV UUUUiiiillll((((3333XXXX))))
-
-
-
- Following are the arguments:
-
-
- _s_t_a_t_u_s__d_a_t_a Data supplied by the application as the
- _s_t_a_t_u_s__d_a_t_a argument to the UUUUiiiillll
- function. UIL does not interpret this
- data in any way; it just passes it to
- the callback.
-
- _p_e_r_c_e_n_t__c_o_m_p_l_e_t_e An integer indicating what percentage of
- the current source file has been
- processed so far.
-
- _l_i_n_e_s__p_r_o_c_e_s_s_e_d An integer indicating how many lines of
- the current source file have been read
- so far.
-
- _c_u_r_r_e_n_t__f_i_l_e A string containing the pathname of the
- current source file.
-
- _m_e_s_s_a_g_e__c_o_u_n_t An array of integers containing the
- number of diagnostic messages issued
- thus far for each severity level. To
- find the number of messages issued for a
- given severity level, use the severity
- level as the index into this array. The
- possible severity levels are the status
- constants returned by the UUUUiiiillll function.
- See the "RETURN VALUE" section below.
-
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
- This function returns one of these status return constants:
-
-
- UUUUiiiillll____kkkk____ssssuuuucccccccceeeessssssss____ssssttttaaaattttuuuussss The operation succeeded.
-
- UUUUiiiillll____kkkk____iiiinnnnffffoooo____ssssttttaaaattttuuuussss The operation succeeded, and an
- informational message is returned.
-
- UUUUiiiillll____kkkk____wwwwaaaarrrrnnnniiiinnnngggg____ssssttttaaaattttuuuussss The operation succeeded, and a
- warning message is returned.
-
- UUUUiiiillll____kkkk____eeeerrrrrrrroooorrrr____ssssttttaaaattttuuuussss The operation failed due to an
- error.
-
- UUUUiiiillll____kkkk____sssseeeevvvveeeerrrreeee____ssssttttaaaattttuuuussss The operation failed due to an
- error.
-
-
- RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
- UUUUiiiillllDDDDuuuummmmppppSSSSyyyymmmmbbbboooollllTTTTaaaabbbblllleeee((((3333XXXX)))) and uuuuiiiillll((((1111XXXX)))).
-
-
-
- Page 5 (printed 4/30/98)
-
-
-
-